export function validateIdNo(rule, value, callback) {
    constreg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
    if (value == '' || value == undefined || value == null) {
        callback();
    } else {
        if ((!reg.test(value)) && value != '') {
            callback(newError('请输入正确的身份证号码'));
        } else {
            callback();
        }
    }
}